var e = require;
var t = module;
var o = exports;
var Adv_skd=require("./Adv_skd");
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("BaseModuleUI"),
    a = e("GlobalParams"),
    i = e("AD"),
    r = e("game_over_player_info"),
    s = cc._decorator,
    l = s.ccclass,
    c = s.property,
    d = (function (e) {
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            return (
                (t.menu_top_node = null),
                (t.bule_kill_num = null),
                (t.red_kill_num = null),
                (t.menu_info_node = null),
                t
            );
        }
        return (
            __extends(t, e),

            (t.prototype.onDisable = function () {
                Adv_skd.default.instance.hideBannerAd();
                Adv_skd.default.instance.hideGridAdLeft();
                Adv_skd.default.instance.hideGridAdRight();
                Adv_skd.default.instance.hideGridAdTop();
                Adv_skd.default.instance.hideGridAdLeftOne();
                Adv_skd.default.instance.hideGridAdRightOne();
                Adv_skd.default.instance.hideGridAdButtom();
            }),

            (t.prototype.initView = function () {


                Adv_skd.default.instance.hideBannerAd();
                Adv_skd.default.instance.hideGridAdLeft();
                Adv_skd.default.instance.hideGridAdRight();
                Adv_skd.default.instance.hideGridAdTop();
                Adv_skd.default.instance.hideGridAdLeftOne();
                Adv_skd.default.instance.hideGridAdRightOne();
                Adv_skd.default.instance.hideGridAdButtom();
                Adv_skd.default.instance.showGridAdLeftOne();
                Adv_skd.default.instance.showGridAdRightOne();
                Adv_skd.default.instance.showInterstitialAd();
                Adv_skd.default.instance.showBannerAd();

                    (this.menu_top_node.children[0].active = !a.GlobalParams.GamePlayerWin),
                    (this.menu_top_node.children[1].active = a.GlobalParams.GamePlayerWin),
                    (this.bule_kill_num.string = "" + a.GlobalParams.GameTeamKillInfo[0]),
                    (this.red_kill_num.string = "" + a.GlobalParams.GameTeamKillInfo[1]);
                for (var e = 0; e < this.menu_info_node.childrenCount; e++)
                    this.menu_info_node.children[e].getComponent(r.default).showPlayerInfo(e);
            }),
            (t.prototype.OnClick = function (t) {
                switch ((e.prototype.OnClick.call(this, t), t.node.name)) {
                    case "again_btn":
                        (a.GlobalParams.AgainGameInfo = !0), cc.director.loadScene("Main");
                        break;
                    case "go_main_btn":
                        cc.director.loadScene("Main");
                }
            }),
            __decorate([c(cc.Node)], t.prototype, "menu_top_node", void 0),
            __decorate([c(cc.Label)], t.prototype, "bule_kill_num", void 0),
            __decorate([c(cc.Label)], t.prototype, "red_kill_num", void 0),
            __decorate([c(cc.Node)], t.prototype, "menu_info_node", void 0),
            __decorate([l], t)
        );
    })(n.default);
o.default = d;
